<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    
    <title>浮动</title>
    <style>
    div{
        width: 
        border: 1px solid #333;
        height: 60px;
        float:left;
    }








    </style>







</head>
<body>
    <main>
        <div>111</div>
        <div>222</div>
        <div>333</div>
        <div>444</div>
    </main>
    <footer>我是main后面的元素</footer>





</body>
.

</html>

